package com.ruoyi.redtea.dualprevent.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * @TableName train_trouble_recytify_job_data
 */
@TableName(value ="train_trouble_recytify_job_data")
@Data
public class TrainTroubleRecytifyJobData implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 整改记录id
     */
    private Integer recytifyId;

    /**
     * 年月日时分秒
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date finishDate;

    /**
     * 整改过程描述
     */
    private String recytifyDesc;

    /**
     * 下一阶段操作人
     */
    private String nextPerson;

    /**
     * 流程类型：1.作业 2.验收
     */
    private Integer processtype;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 
     */
    private Integer isdel;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TrainTroubleRecytifyJobData other = (TrainTroubleRecytifyJobData) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getRecytifyId() == null ? other.getRecytifyId() == null : this.getRecytifyId().equals(other.getRecytifyId()))
            && (this.getFinishDate() == null ? other.getFinishDate() == null : this.getFinishDate().equals(other.getFinishDate()))
            && (this.getRecytifyDesc() == null ? other.getRecytifyDesc() == null : this.getRecytifyDesc().equals(other.getRecytifyDesc()))
            && (this.getNextPerson() == null ? other.getNextPerson() == null : this.getNextPerson().equals(other.getNextPerson()))
            && (this.getProcesstype() == null ? other.getProcesstype() == null : this.getProcesstype().equals(other.getProcesstype()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getIsdel() == null ? other.getIsdel() == null : this.getIsdel().equals(other.getIsdel()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getRecytifyId() == null) ? 0 : getRecytifyId().hashCode());
        result = prime * result + ((getFinishDate() == null) ? 0 : getFinishDate().hashCode());
        result = prime * result + ((getRecytifyDesc() == null) ? 0 : getRecytifyDesc().hashCode());
        result = prime * result + ((getNextPerson() == null) ? 0 : getNextPerson().hashCode());
        result = prime * result + ((getProcesstype() == null) ? 0 : getProcesstype().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getIsdel() == null) ? 0 : getIsdel().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", recytifyId=").append(recytifyId);
        sb.append(", finishDate=").append(finishDate);
        sb.append(", recytifyDesc=").append(recytifyDesc);
        sb.append(", nextPerson=").append(nextPerson);
        sb.append(", processtype=").append(processtype);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", isdel=").append(isdel);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}